import React from "react";
import ReactDOM from "react-dom";

import WithToken from './WithToken';

@WithToken
class C extends React.Component {

    constructor(props) {
        super(props)
    }

    render() {
        return (
            <div>
                <p>如果有token则打印出来:</p>
                {
                    this.props.token && <div>{this.props.token}</div>
                }
            </div>
        )
    }
}

export default C;